package cn.lutu.domain.repository.impl;

import cn.lutu.dao.mapper.UserRoleMapper;
import cn.lutu.domain.repository.UserRoleRepository;
import cn.lutu.protocol.entity.RoleUser;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;



@Repository
@Slf4j
public class UserRoleRepositoryImpl implements UserRoleRepository {


    @Autowired
    UserRoleMapper userRoleMapper;
    @Override
    public int insert(RoleUser roleUser) {
        log.debug("roleUser {}",roleUser);
        return userRoleMapper.insert(roleUser);
    }
}
